# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

load("@rules_cc//cc:defs.bzl", "cc_test")

filegroup(
    name = "all_srcs",
    srcs = glob(["**"]),
)

cc_test(
    name = "iceoryx2-cxx-tests",
    srcs = glob([
        "src/*.cpp",
        "src/*.hpp",
    ]),
    includes = [
        "src",
    ],
    linkopts = select({
        "//:win-gcc": [],
        "//:win-msvc": [],
        "//conditions:default": ["-ldl"],
    }),
    tags = ["exclusive"],
    visibility = ["//visibility:private"],
    deps = [
        "//:iceoryx2-bb-cxx",
        "//:iceoryx2-cxx-static",
        "@googletest//:gtest",
    ],
)
